/**
 * 静态成员
 */

{
  type IAllowFileTypeList = 'jpg' | 'png';

  class User {
    static readonly ALLOW_FILE_TYPE_LIST: Array<IAllowFileTypeList> = ['png', 'jpg'];

    constructor(
      public id: number,
      public username: string,
      private _allowFileTypes: Array<IAllowFileTypeList>
    ) {

    }

    info(): void {
      console.log(User.ALLOW_FILE_TYPE_LIST);
      console.log(this._allowFileTypes);
    }

    static info1(): void {
      console.log(User.ALLOW_FILE_TYPE_LIST);
    }
  }


  let user = new User(1, 'mt', ['png', 'jpg']);
  console.log(user);

  console.log(User.ALLOW_FILE_TYPE_LIST);
  User.info1();
  user.info();
}